<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul id="node">
        <li>aaa</li>
        <li>bbb</li>
        <li>cccc</li>
    </ul>
    <p></p>

    <script>
        let nodes = document.getElementById("node");
        console.log(nodes);
        
        console.log(nodes.firstElementChild.nodeType);//  ===1  类型编号
        console.log(nodes.firstElementChild.nodeName);//  ===LI   什么节点
        console.log(nodes.firstElementChild.nodeValue);//  ===null
        console.log(nodes.firstElementChild.firstElementChild.nodeName);//  ===  #text



        

    </script>
</body>
</html>